<?php

class UserInfo
{
    protected $id;
    protected $name;
    protected $sex;
    protected $notify;
    protected $comment;

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param mixed $comment
     */
    public function setComment($comment)
    {
        $this->comment = $comment;
    }

    /**
     * @return mixed
     */
    public function getComment()
    {
        return $this->comment;
    }

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $notify
     */
    public function setNotify($notify)
    {
        $this->notify = $notify;
    }

    /**
     * @return mixed
     */
    public function getNotify()
    {
        return $this->notify;
    }

    public function getNotifyAsString()
    {
        return ($this->notify) ? "Уведомить" : "Не уведомлять";
    }

    public function getSexAsString()
    {
        $sexStrings = array(
            Sex::MALE => "Мужской",
            Sex::FEMALE => "Женский"
        );
        return $sexStrings[$this->sex];
    }

    /**
     * @param mixed $sex
     */
    public function setSex($sex)
    {
        $this->sex = $sex;
    }

    /**
     * @return mixed
     */
    public function getSex()
    {
        return $this->sex;
    }
}